package com.yc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.entity.Rankmonth;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * InnoDB free: 4096 kB Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2022-05-29
 */
public interface RankmonthMapper extends BaseMapper<Rankmonth> {
    @Select("SELECT * from rankmonth where ctid in (SELECT ctid from cmap where csid in (SELECT csid from categorysecord where csname=#{csname}))")
    public List< Rankmonth > queryByCsname(String csname);
}
